projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fbd98
)
mtd: cfi: Unlock current sector instead of sector 0 before buffered write
author
Rouven Behr
<
[email protected]
>
Sun, 10 Apr 2016 11:38:13 +0000
(13:38 +0200)
committer
Stefan Roese
<
[email protected]
>
Wed, 13 Apr 2016 11:43:37 +0000
(13:43 +0200)
Unlock current sector instead of sector 0 before buffered write.
[Patch subject and commit text slightly reworded, Stefan]
Signed-off-by: Rouven Behr <
[email protected]
>
Signed-off-by: Stefan Roese <
[email protected]
>
drivers/mtd/cfi_flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/cfi_flash.c
b/drivers/mtd/cfi_flash.c
index 18831c62e75527ac6f19a2bb12d1d81698ae3d62..8ccaff0e63a2e9a6778d47dc439bf2c39b1c05fc 100644
(file)
--- a/
drivers/mtd/cfi_flash.c
+++ b/
drivers/mtd/cfi_flash.c
@@
-979,7
+979,7
@@
static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp,
case CFI_CMDSET_AMD_STANDARD:
case CFI_CMDSET_AMD_EXTENDED:
- flash_unlock_seq(info,
0
);
+ flash_unlock_seq(info,
sector
);
#ifdef CONFIG_FLASH_SPANSION_S29WS_N
offset = ((unsigned long)dst - info->start[sector]) >> shift;